<template>
  <div id="app">
    <div id="header">
      <router-link to="/">Home</router-link>
      <router-link to="/user">User</router-link>
    </div>
      <div id="main">
        <keep-alive>
          <div key="route-view">
            <router-view :key="$route.path" name="main" />
          </div>
        </keep-alive>
      </div>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>
